<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTableConfigs extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('configs', function (Blueprint $table) {
			$table->increments('id');
			$table->string('config')->nullable()->comment('显示设置');
			$table->string('say', 50)->nullable()->comment('页面个人寄语');
			$table->string('title', 50)->nullable()->comment('标题');
			$table->string('keywords', 150)->nullable()->comment('页面关键词');
			$table->string('description', 150)->nullable()->comment('简介');
			$table->boolean('nopwd')->default(true)->comment('无密码访问简历');
			$table->string('password')->nullable()->comment('简历密码');
			$table->string('weibo', 50)->nullable()->comment('微博');
			$table->string('email', 50)->nullable()->comment('邮箱');
			$table->string('wechat')->nullable()->comment('微信');
			$table->string('github', 50)->nullable()->comment('github');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::dropIfExists('configs');
	}
}
